import request from '@/utils/request'
// 获取平台/商户订单列表
export function getOrderList(data) {
  return request({
    url: '/adminapi/adminOrder/getList',
    method: 'post',
    data: data
  })
}
// 获取平台订单详情
export function getInfo(data) {
  return request({
    url: '/adminapi/adminOrder/getInfo',
    method: 'post',
    data: data
  })
}
// 获取总订单详情
export function getInfoByOrder(data) {
  return request({
    url: '/adminapi/adminOrder/getInfoByOrder',
    method: 'post',
    data: data
  })
}
// 订单支付列表
export function getPayList(data) {
  return request({
    url: '/adminapi/adminOrder/getPayList',
    method: 'post',
    data: data
  })
}
// 订单支付明细
export function getActivity(data) {
  return request({
    url: '/adminapi/adminOrder/getActivity',
    method: 'post',
    data: data
  })
}
// 获取总订单商品列表
export function getGoodsByOrder(data) {
  return request({
    url: '/adminapi/adminOrder/getGoodsByOrder',
    method: 'post',
    data: data
  })
}


// 获取平台/商户订单列表【总订单】
export function getOrderListByOrder(data) {
  return request({
    url: '/adminapi/adminOrder/getListByOrder',
    method: 'post',
    data: data
  })
}

// 获取订单备注列表
export function getRemarkList(data) {
  return request({
    url: '/adminapi/adminOrder/getRemarkList',
    method: 'post',
    data: data
  })
}
// 订单添加备注
export function setRemark(data) {
  return request({
    url: '/adminapi/adminOrder/setRemark',
    method: 'post',
    data: data
  })
}
// 修改订单收货地址
export function setAddress(data) {
  return request({
    url: '/adminapi/adminOrder/setAddress',
    method: 'post',
    data: data
  })
}
// 取消订单
export function serCancel(data) {
  return request({
    url: '/adminapi/adminOrder/serCancel',
    method: 'post',
    data: data
  })
}
// 单个订单退款
export function setRefundDirect(data) {
  return request({
    url: '/adminapi/adminOrder/setRefundDirect',
    method: 'post',
    data: data
  })
}
// 总订单退款
export function setRefundDirectBatch(data) {
  return request({
    url: '/adminapi/adminOrder/setRefundDirectBatch',
    method: 'post',
    data: data
  })
}

// 获取发货记录
export function getDeliveryList(data) {
  return request({
    url: '/adminapi/adminOrder/getDeliveryList',
    method: 'post',
    data: data
  })
}
// 获取售后订单
export function getRefundList(data) {
  return request({
    url: '/adminapi/adminOrder/getRefundList',
    method: 'post',
    data: data
  })
}
// 获取售后订单详情
export function getadminRefundDetail(data) {
  return request({
    url: '/adminapi/adminOrder/getRefundDetail',
    method: 'post',
    data: data
  })
}
// 审核售后订单
export function setRefundVerify(data) {
  return request({
    url: '/adminapi/adminOrder/setRefundVerify',
    method: 'post',
    data: data
  })
}
// 确认收货售后订单
export function setGoodsConfirm(data) {
  return request({
    url: '/adminapi/adminOrder/setGoodsBackConfirm',
    method: 'post',
    data: data
  })
}
// 确认换货售后订单
export function addRefundNewOrder(data) {
  return request({
    url: '/adminapi/adminOrder/addRefundNewOrder',
    method: 'post',
    data: data
  })
}
// 退款售后订单
export function setRefundBack(data) {
  return request({
    url: '/adminapi/adminOrder/setRefundBack',
    method: 'post',
    data: data
  })
}
// 获取供应商订单列表
export function getSupplyOrderList(data) {
  return request({
    url: '/adminapi/supplyOrder/getList',
    method: 'post',
    data: data
  })
}

// 待发送订单-导入发货文件批量发货
export function orderGetListExport(data) {
  return request({
    url: '/adminapi/supplyOrder/getListExport',
    method: 'post',
    data: data
  })
}

// 待发送订单-导入发货文件批量发货
export function supplyOrderImport(data) {
  return request({
    url: '/adminapi/supplyOrder/orderImport',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: data
  })
}

// 组合发货-组合发货
export function supplyCombinedDelivery(data) {
  return request({
    url: '/adminapi/supplyOrder/combinedDelivery',
    method: 'post',
    data: data
  })
}

// 获取供应商订单物流记录
export function getSupplyryList(data) {
  return request({
    url: '/adminapi/supplyOrder/getDeliveryList',
    method: 'post',
    data: data
  })
}
// 获取供应商售后订单
export function getRefundDetail(data) {
  return request({
    url: '/adminapi/supplyOrder/getRefundDetail',
    method: 'post',
    data: data
  })
}
// 供货商订单发货
export function editDelivery(data) {
  return request({
    url: '/adminapi/supplyOrder/setDelivery',
    method: 'post',
    data: data
  })
}
// 供货商售后订单
export function getSupplyRefundList(data) {
  return request({
    url: '/adminapi/supplyOrder/getRefundList',
    method: 'post',
    data: data
  })
}
// 供货商确认寄回
export function setGoodsBackConfirm(data) {
  return request({
    url: '/adminapi/supplyOrder/setGoodsBackConfirm',
    method: 'post',
    data: data
  })
}
// 获取收货订单协商记录
export function getRefundHistory(data) {
  return request({
    url: '/adminapi/adminOrder/getRefundHistory',
    method: 'post',
    data: data
  })
}

// 供货商确认寄回
export function getOrderConfig(data) {
  return request({
    url: '/adminapi/platform/orderConfig/getList',
    method: 'post',
    data: data
  })
}
// 获取收货订单协商记录
export function saveOrderConfig(data) {
  return request({
    url: '/adminapi/platform/orderConfig/saveInfo',
    method: 'post',
    data: data
  })
}

// 获取采购订单售后
export function getRefundOrderList(data) {
  return request({
    url: '/adminapi/merchant/order/refund/list',
    method: 'post',
    data: data
  })
}
// 获取采购订单售后详情
export function getRefundOrderDetail(data) {
  return request({
    url: '/adminapi/merchant/order/refund/detail',
    method: 'post',
    data: data
  })
}
// 获取采购订单售后审核
export function auditingRefundOrderAudit(data) {
  return request({
    url: '/adminapi/merchant/order/refund/audit',
    method: 'post',
    data: data
  })
}

// 获取自提订单售后列表
export function getSelfList(data) {
  return request({
    url: '/adminapi/merchant/order/refund/selfList',
    method: 'post',
    data: data
  })
}
// 获取自提订单售后详情
export function getSelfDetail(data) {
  return request({
    url: '/adminapi/merchant/order/refund/selfDetail',
    method: 'post',
    data: data
  })
}
// 自提订单售后审核
export function getSelfVerify(data) {
  return request({
    url: '/adminapi/merchant/order/refund/selfVerify',
    method: 'post',
    data: data
  })
}
// 自提订单售后确定商品寄回
export function getSelfConfirmReturn(data) {
  return request({
    url: '/adminapi/merchant/order/refund/selfConfirmReturn',
    method: 'post',
    data: data
  })
}
// 自提订单售后确定换货
export function refundAddRefundNewOrder(data) {
  return request({
    url: '/adminapi/merchant/order/refund/addRefundNewOrder',
    method: 'post',
    data: data
  })
}
// 自提订单售后确定退款
export function selfConfirmRefundBack(data) {
  return request({
    url: '/adminapi/merchant/order/refund/selfConfirmRefundBack',
    method: 'post',
    data: data
  })
}
// 自提订单协商历史记录
export function getRefundHistoryList(data) {
  return request({
    url: '/adminapi/merchant/order/refund/refundHistory',
    method: 'post',
    data: data
  })
}
// 获取物流信息
export function getlogistics(data) {
  return request({
    url: '/adminapi/order/v2/expressGet',
    method: 'post',
    data: data
  })
}
